package com.adv.crm.services;

import com.adv.crm.beans.AccountBean;
import com.adv.crm.beans.AccountQueryBean;
import com.adv.crm.beans.PageBean;
import com.adv.crm.beans.WarpResponse;

import java.util.List;

/**
 * Created by 16978 on 2016/6/19.
 */
public interface AccountService {
    public boolean addAccount(AccountBean accountBean);

    public List<AccountBean> getAccountsByPage(int pageSize, int pageIndex);

    public List<AccountBean> queryAccountsByPage(AccountQueryBean bean);

    public WarpResponse<AccountBean> getAccountById(long id);

    public WarpResponse<Boolean> updateAccountById(AccountBean bean);

    public PageBean getPageInfo(int pageSize,int pageIndex);

    public PageBean queryPageInfo(AccountQueryBean bean);
}
